tools/libxc: introduce xc_memalign in xc_{minios,linux,solaris,netbsd}.c
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Thu, 1 Dec 2011 15:35:02 +0000 (15:35 +0000)
committerShriram Rajagopalan <rshriram@cs.ubc.ca>
Thu, 1 Dec 2011 15:35:02 +0000 (15:35 +0000)
commitde869779a0b7c411a69b787ec01b485492b40f32
treef1fb58a194fbb928a560b40f9c8b58b09daa470a
parent3a313ac80e9e0316393c8034a32aae34e8f3373c
tools/libxc: introduce xc_memalign in xc_{minios,linux,solaris,netbsd}.c

Move (page aligned) buffer allocations in {os}_privcmd_alloc_hypercall_buffer
into a global function xc_memalign. This API is also used by Remus
compression code to allocate compression caches that need to be page aligned.

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_linux.c
tools/libxc/xc_linux_osdep.c
tools/libxc/xc_minios.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_solaris.c
tools/libxc/xenctrl.h